﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LocalizationSettings.cs" company="西部动力">
//   web7
// </copyright>
// <summary>
//   The settings of Localization
//   2012-4
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Globalization;

namespace Web7.Container.Localization
{
    /// <summary>
    /// The settings of Localization
    /// 2012-4
    /// </summary>
    public class LocalizationSettings
    {
        /// <summary>
        /// 用户偏好选择语言
        /// </summary>
        public static readonly string PreferenceCulture = "Web7.L10N.PreferenceCulture";

        /// <summary>
        /// Cookie中存储的Key
        /// </summary>
        public static readonly string PreferenceCultureForCookie = "Web7_Culture";

        /// <summary>
        /// 默认语言
        /// </summary>
        public static readonly string DefaultCulture = "zh-CN";

        /// <summary>
        /// 资源文件默认路径
        /// </summary>
        public static readonly string RootLocalizationFilePathFormat = "~/App_Data/Localization/{0}/web7.root.po";

        /// <summary>
        /// 语言条目缓存时的Key
        /// </summary>
        public static readonly string LocalstringresourcesByCultureName = "Web7.L10N.{0}-{1}";

        /// <summary>
        /// 当前语言Id
        /// </summary>
        public static readonly string CurrentLanguageID = "Web7.L10N.CurrentLanguage.ID";
    }
}